package com.hxy.springcloud;

import com.hxy.myRule.MyRuleConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

@SpringBootApplication
@EnableEurekaClient
//在微服务启动的时候就能去加载自定义的配置类
@RibbonClient(name = "SPRINGCLOUD-PROVIDER-DEPARTMENT", configuration = MyRuleConfig.class) //配置Ribbon轮询的服务，使用的配置轮询算法为当前指定类
public class DepartmentConsume_80 {
    public static void main(String[] args) {
        SpringApplication.run(DepartmentConsume_80.class,args);
    }
}
